package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the USERRESPONSESTATE database table.
 * 
 */
@Entity
public class Userresponsestate implements Serializable {
	private static final long serialVersionUID = 1L;
	private long userresponsestateid;
	private Timestamp createddate;
	private Timestamp deleteddate;
	private String description;
	private String isactive;
	private String name;
	private List<Eventuserresponse> eventuserresponses;
	private List<Eventuserresponsestate> eventuserresponsestates;

    public Userresponsestate() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public long getUserresponsestateid() {
		return this.userresponsestateid;
	}

	public void setUserresponsestateid(long userresponsestateid) {
		this.userresponsestateid = userresponsestateid;
	}


	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}


	//bi-directional many-to-one association to Eventuserresponse
	@OneToMany(mappedBy="userresponsestate")
	public List<Eventuserresponse> getEventuserresponses() {
		return this.eventuserresponses;
	}

	public void setEventuserresponses(List<Eventuserresponse> eventuserresponses) {
		this.eventuserresponses = eventuserresponses;
	}
	

	//bi-directional many-to-one association to Eventuserresponsestate
	@OneToMany(mappedBy="userresponsestate")
	public List<Eventuserresponsestate> getEventuserresponsestates() {
		return this.eventuserresponsestates;
	}

	public void setEventuserresponsestates(List<Eventuserresponsestate> eventuserresponsestates) {
		this.eventuserresponsestates = eventuserresponsestates;
	}
	
}